#pragma once

#include <GL/glew.h>
#include <iostream>
#include <fstream>
#include <string>

void printShaderLog(GLuint shader);

void printProgramLog(GLuint program);

bool checkOpenGLError();

std::string readShaderSource(const std::string& filePath);

std::string getResourcePath(const char* relpath);

GLuint createShaderProgram(const std::string& vertexPath, const std::string& fragmentPath);

GLuint loadTexture(const char* texturePath);
